Skip to content

Reenable Code based profiling when VM Developer Mode is enabled #8832

Merged
bkonyi merged 7 commits into
flutter:masterfrom
bkonyi:reenable_code_view_profiler
Jan 31, 2025
Merged

Reenable Code based profiling when VM Developer Mode is enabled #8832
bkonyi merged 7 commits into
flutter:masterfrom
bkonyi:reenable_code_view_profiler

Conversation

@bkonyi
Copy link
Copy Markdown
Contributor

@bkonyi bkonyi commented Jan 31, 2025

Fixes #8567

Also prepares package:devtools_app_shared and package:devtools_extensions for a new release containing the updated package:vm_service constraints. This is needed to resolve analysis failures on the flutter-analyze-try bot in the SDK.

Comment thread flutter-candidate.txt
@@ -1 +1 @@
7313c873463d2a20a7ec1047d7b8b9146dd2a39b
de872dd864518d436062354052ea8604c38e8c94
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this intentional? @elliette just submitted a PR this morning that updated this to the latest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is intentional. 7313c873463d2a20a7ec1047d7b8b9146dd2a39b points to a change from two days ago that doesn't include the vm_service version bump.

found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
-->
## 0.3.1
* Add "Supported Flutter versions" policy to the README.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this one supposed to move up to 0.3.1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it wasn't included in the release notes for 0.3.0 so I included it here. I must have been looking at the wrong package on Pub.

Comment thread packages/devtools_app/pubspec.yaml Outdated
string_scanner: ^1.1.0
unified_analytics: ^7.0.0
vm_service: '>=13.0.0 <16.0.0'
vm_service: ">=15.0.0 <16.0.0"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does 15.0.0 come with a min sdk version bump?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, since it wasn't a change in the service protocol. There's a breaking change in package:vm_service where Code.function is no longer FuncRef but dynamic since it can also be a NativeFunction. This impacts code in DevTools, which is why I'm raising the lower bound to the newest compatible version.

@bkonyi bkonyi requested a review from elliette as a code owner January 31, 2025 20:34
@elliette
Copy link
Copy Markdown
Member

Ahh is this why I was seeing errors on https://dart-review.googlesource.com/c/sdk/+/407141? Do I need to prepare the release with Flutter version de872dd864518d436062354052ea8604c38e8c94 instead?

@bkonyi
Copy link
Copy Markdown
Contributor Author

bkonyi commented Jan 31, 2025

Ahh is this why I was seeing errors on https://dart-review.googlesource.com/c/sdk/+/407141? Do I need to prepare the release with Flutter version de872dd864518d436062354052ea8604c38e8c94 instead?

Yep, that's what's causing the flutter-analyze-try check to fail :)

@bkonyi bkonyi merged commit f38960c into flutter:master Jan 31, 2025
@bkonyi bkonyi deleted the reenable_code_view_profiler branch January 31, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception capturing CPU profile ("type 'NativeFunction' is not a subtype of type 'FuncRef?' in type cast")

3 participants